<%= form_for(@reservation) do |f| %>
  <% if @reservation.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@reservation.errors.count, "error") %> prohibited this reservation from being saved:</h2>

      <ul>
      <% @reservation.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :rdate %><br />
    <%= f.date_select :rdate %>
  </div>
  <div class="field">
    <%= f.label :rtime %><br />
    <%= f.time_select :rtime %>
  </div>
  <div class="field">
    <%= f.label :qty %><br />
    <%= f.text_field :qty %>
  </div>
  <div class="field">
    <%= f.label :table_id %><br />
    <%= f.text_field :table_id %>
  </div>
  <div class="field">
    <%= f.label :qtytable %><br />
    <%= f.text_field :qtytable %>
  </div>
  <div class="field">
    <%= f.label :status %><br />
    <%= f.text_field :status %>
  </div>
  <div class="field">
    <%= f.label :user_id %><br />
    <%= f.text_field :user_id %>
  </div>
  <div class="field">
    <%= f.label :restaurant_id %><br />
    <%= f.text_field :restaurant_id %>
  </div>
  <div class="field">
    <%= f.label :restaurant_name %><br />
    <%= f.text_field :restaurant_name %>
  </div>
  <div class="field">
    <%= f.label :local_id %><br />
    <%= f.text_field :local_id %>
  </div>
  <div class="field">
    <%= f.label :local_name %><br />
    <%= f.text_field :local_name %>
  </div>


  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
